package com.zy.dubbo.demo.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * PaginationInterceptor
 *
 * @author Robbin Zhao
 * @since 2020-12-11
 */
@Configuration
public class MyBatisPageInterceptor {

    @Bean
    public PaginationInnerInterceptor paginationInterceptor() {
        return new PaginationInnerInterceptor();
    }
}
